<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>所有任务</title>
</head>
<body>
    <div style="width: 1000px;margin: 10px auto;">
        <p>
            <a href="/job/add">添加任务</a>
        </p>
        <table border="1" style="width: 1000px;">
            <tr>
                <th>编号</th>
                <th>Bean名称</th>
                <th>方法名称</th>
                <th>方法参数</th>
                <th>cron表达式</th>
                <th>状态</th>
                <th>备注</th>
                <th>创建时间</th>
                <th>更新时间</th>
                <th>操作</th>
            </tr>
            <tr th:each="job:${jobs}">
                <td th:text="${job.jobId}"></td>
                <td th:text="${job.beanName}"></td>
                <td th:text="${job.methodName}"></td>
                <td th:text="${job.methodParams}"></td>
                <td th:text="${job.cronExpression}"></td>
                <td th:text="${job.jobStatus==1?'正常':'暂停'}"></td>
                <td th:text="${job.remark}"></td>
                <td th:text="${#dates.format(job.createTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                <td th:text="${#dates.format(job.updateTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                <td><a th:href="@{/job/edit(jobId=${job.jobId})}">修改</a><a th:href="@{/job/del(jobId=${job.jobId})}">删除</a></td>
            </tr>
        </table>
    </div>
</body>
</html>